package ManyAnimal;

public class Frog extends Animal implements IAmphibious{
    public Frog(String name) {
        super(name);
    }

    public void run() {
        System.out.println(this.name + "正在奔跑");
    }

    public void swimming() {
        System.out.println(this.name + "正在游泳");
    }
}
